package com.halflife.parameter.template;

import com.halflife.framework.generator.annotation.Join;
import com.halflife.framework.generator.annotation.QueryAnn;
import com.halflife.framework.generator.build.SimpleBuilder;
import com.halflife.framework.generator.build.UpdataBuilder;
import com.halflife.framework.participant.user.UserView;
import com.halflife.parameter.icon.Icon;
import org.junit.jupiter.api.Test;

@QueryAnn(title = "Parameters",mainTitle = "Parameters",table = "t_parameter_parameters")
public class Parameter {
    @Test
    public void generate0()throws Exception{
        SimpleBuilder builder = new SimpleBuilder();
        builder.buildAll(this.getClass());
    }
    @Test
    public void generate()throws Exception{
        UpdataBuilder builder = new UpdataBuilder();
        builder.buildMapper(this.getClass());
//        builder.buildAlterTable(this.getClass());
    }
    private Integer id;
    @QueryAnn("lens")
    private String lens;
    @QueryAnn("iso")
    private String iso;
    @QueryAnn("aperture")
    private String aperture;
    @QueryAnn("shutter")
    private String shutter;
    @QueryAnn("cameraHolding")
    private String cameraHolding;
    @QueryAnn("height")
    private String height;
    @QueryAnn("tiltAngle")
    private String tiltAngle;
    @QueryAnn("bgColor")
    private String bgColor;
    @QueryAnn("Notes")
    private String memo;
    @QueryAnn("SvgInfo")
    private String svgInfo;
    @QueryAnn("CreateTime")
    private String createTime;
    @QueryAnn("ModifyTime")
    private String modifyTime;
    @QueryAnn("Status")
    private String status;
    @QueryAnn("Template Id")
    private Integer templateId;
    @QueryAnn("Icon Id")
    private Integer iconId;
    @QueryAnn(value = "Template")
    @Join(join = "",joinType = "I")
    private Template template;
    @QueryAnn(value = "Icon")
    @Join(join = "")
    private Icon icon;
    @QueryAnn("profilePhoto")
    private String profilePhoto;

    @QueryAnn(value = "Valid")
    private Boolean valid;
    public void init(){}

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getLens() {
        return lens;
    }

    public void setLens(String lens) {
        this.lens = lens;
    }

    public String getIso() {
        return iso;
    }

    public void setIso(String iso) {
        this.iso = iso;
    }

    public String getAperture() {
        return aperture;
    }

    public void setAperture(String aperture) {
        this.aperture = aperture;
    }

    public String getShutter() {
        return shutter;
    }

    public void setShutter(String shutter) {
        this.shutter = shutter;
    }

    public String getCameraHolding() {
        return cameraHolding;
    }

    public void setCameraHolding(String cameraHolding) {
        this.cameraHolding = cameraHolding;
    }

    public String getHeight() {
        return height;
    }

    public void setHeight(String height) {
        this.height = height;
    }

    public String getTiltAngle() {
        return tiltAngle;
    }

    public void setTiltAngle(String tiltAngle) {
        this.tiltAngle = tiltAngle;
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    public String getSvgInfo() {
        return svgInfo;
    }

    public void setSvgInfo(String svgInfo) {
        this.svgInfo = svgInfo;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(String modifyTime) {
        this.modifyTime = modifyTime;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Integer getTemplateId() {
        return templateId;
    }

    public void setTemplateId(Integer templateId) {
        this.templateId = templateId;
    }

    public Integer getIconId() {
        return iconId;
    }

    public void setIconId(Integer iconId) {
        this.iconId = iconId;
    }

    public Template getTemplate() {
        return template;
    }

    public void setTemplate(Template template) {
        this.template = template;
    }

    public Icon getIcon() {
        return icon;
    }

    public void setIcon(Icon icon) {
        this.icon = icon;
    }

    public Boolean getValid() {
        return valid;
    }

    public void setValid(Boolean valid) {
        this.valid = valid;
    }

    public String getBgColor() {
        return bgColor;
    }

    public void setBgColor(String bgColor) {
        this.bgColor = bgColor;
    }

    public String getProfilePhoto() {
        return profilePhoto;
    }

    public void setProfilePhoto(String profilePhoto) {
        this.profilePhoto = profilePhoto;
    }
}
